package com.example.behaviorpattern.mediator.impl;

import com.example.behaviorpattern.mediator.Colleague;
import com.example.behaviorpattern.mediator.Mediator;

/**具体通识类B
 * @author yaojianfeng
 */
public class ConcreteColleagueB extends Colleague {
    public ConcreteColleagueB(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void receive(String message) {
        System.out.println("Colleague2 received message: " + message);
    }
}